package com.iscale.model.entity;

import java.util.Date;
import java.io.Serializable;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author Andychen
 * @since 2017-03-01
 */
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 请求ip
     */
	private String reqIp;
    /**
     * 操作人
     */
	private String operUser;
    /**
     * 请求方法
     */
	private String reqMethod;
    /**
     * 请求参数
     */
	private String reqParam;
    /**
     * 请求结果
     */
	private String repResult;
    /**
     * 持续时间
     */
	private Long duration;
    /**
     * 请求路径
     */
	private String reqUrl;
    /**
     * 请求ua
     */
	private String reqAgent;
    /**
     * 请求时间
     */
	private Date reqTime;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 排序
	 */
	private Long rank;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getReqIp() {
		return reqIp;
	}

	public void setReqIp(String reqIp) {
		this.reqIp = reqIp;
	}

	public String getOperUser() {
		return operUser;
	}

	public void setOperUser(String operUser) {
		this.operUser = operUser;
	}

	public String getReqMethod() {
		return reqMethod;
	}

	public void setReqMethod(String reqMethod) {
		this.reqMethod = reqMethod;
	}

	public String getReqParam() {
		return reqParam;
	}

	public void setReqParam(String reqParam) {
		this.reqParam = reqParam;
	}

	public String getRepResult() {
		return repResult;
	}

	public void setRepResult(String repResult) {
		this.repResult = repResult;
	}

	public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

	public String getReqUrl() {
		return reqUrl;
	}

	public void setReqUrl(String reqUrl) {
		this.reqUrl = reqUrl;
	}

	public String getReqAgent() {
		return reqAgent;
	}

	public void setReqAgent(String reqAgent) {
		this.reqAgent = reqAgent;
	}

	public Date getReqTime() {
		return reqTime;
	}

	public void setReqTime(Date reqTime) {
		this.reqTime = reqTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getRank() {
		return rank;
	}

	public void setRank(Long rank) {
		this.rank = rank;
	}

	@Override
	public String toString() {
		return "SysLog{" +
				"id=" + id +
				", reqIp='" + reqIp + '\'' +
				", operUser='" + operUser + '\'' +
				", reqMethod='" + reqMethod + '\'' +
				", reqParam='" + reqParam + '\'' +
				", repResult='" + repResult + '\'' +
				", duration=" + duration +
				", reqUrl='" + reqUrl + '\'' +
				", reqAgent='" + reqAgent + '\'' +
				", reqTime=" + reqTime +
				", createTime=" + createTime +
				'}';
	}
}
